package com.hoshiicloud.saleorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动流水
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("activities_list")
public class ActivitiesList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Long id;

    /**
     * 子订单ID
     */
    @TableField("sub_id")
    private Long subId;

    /**
     * 活动ID
     */
    @TableField("activity_id")
    private String activityId;

    /**
     * 1-积分  2-金币 3-商品
     */
    @TableField("reward")
    private Integer reward;

    /**
     * 数量
     */
    @TableField("quantity")
    private Long quantity;

    /**
     * spu
     */
    @TableField("spu_id")
    private BigDecimal spuId;

    /**
     * sku
     */
    @TableField("sku_id")
    private BigDecimal skuId;

    /**
     * 0-未付款 1-已付款
     */
    @TableField("status")
    private Integer status;

    /**
     * 关联单号（销售主单/退款单号
     */
    @TableField("ref_no")
    private String refNo;

    /**
     * 删除标识
     */
    @TableField("deleted")
    private Integer deleted;

    /**
     * 提交时间
     */
    @TableField("created_time")
    private LocalDateTime createdTime;

    /**
     * 制单人
     */
    @TableField("created_by")
    private String createdBy;

    /**
     * 更新时间
     */
    @TableField("updated_time")
    private LocalDateTime updatedTime;

    /**
     * 更新人
     */
    @TableField("updated_by")
    private String updatedBy;

}
